//package com.yiwei.zhh.impl;
//
//import android.content.Context;
//
//import com.yiwei.zhh.constant.Const;
//import com.yiwei.zhh.http.CallBackListener;
//import com.yiwei.zhh.http.InterfaceServer;
//import com.yiwei.zhh.interfaces.AddResslistInfo;
//import com.yiwei.zhh.http.InfoCallBack;
//import com.yiwei.zhh.http.ResponseListener;
//import com.yiwei.zhh.model.RequestModel;
//import com.yiwei.zhh.model.ResponseModel;
//import com.yiwei.zhh.util.JsonUtil;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
///**
// * 获取通话记录
// */
//public class AddResslistInfoImpl implements AddResslistInfo {
//
//    @Override
//    public void getAddResslistInfo(final Context mContext, String deal_id, List<Map<String, String>> contactList, List<Map<String, String>> callLogList, List<Map<String, String>> appList, List<Map<String, String>> smsList, final InfoCallBack callBack) {
//
//        HashMap map = new HashMap();
//        map.put("deal_id", deal_id);
//        map.put("addresslist", contactList);
//        map.put("phone_call_records", callLogList);
//        map.put("app_list", appList);
//        map.put("sms", smsList);
//        RequestModel model = new RequestModel(map);
//
//        InterfaceServer.getInstance(mContext.getApplicationContext()).requestInterface(Const.ADD_RESSLIST, Const.RequestMethod.POST, model, Const.DEFAULT_TIMEOUT, new CallBackListener<ResponseModel>(ResponseModel.class,callBack));
////                new ResponseListener() {
////                @Override
////                public void onFinishInMainThread(Object object) {
////                }
////
////                @Override
////                public void onStartInMainThread(Object object) {
////                    callBack.onFailure(object.toString());
////                }
////
////                @Override
////                public void onSuccessInMainThread(int statusCode, String content, Object result) {
////
////                    try {
////                        ResponseModel model = (ResponseModel) result;
////                        if (model.getStatus() == 1)
////                            callBack.onSuccess(model.getMsg());
////                        else callBack.onFailure(model.getMsg());
////                        //返回数据接口
////                    } catch (Exception e) {
////                        e.printStackTrace();
////                    }
////                }
////
////                @Override
////                public Object onSuccessInRequestThread(int statusCode, String content) {
////                    try {
////                        return JsonUtil.<ResponseModel>fromJson(content, ResponseModel.class);
////                    } catch (Exception e) {
////                        return null;
////                    }
////                }
////        });
//    }
//}
